package com.hc.app.sensitiveword;

import com.hc.sensitive.sensitiveword.SensitiveWordBs;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: huangcheng
 * @CreateTime: 2024-12-06  09:40
 * @Description:
 * @Version: 1.0
 */
@RestController
@RequestMapping("/sensitiveword")
public class SensitivewordTest {
    @Autowired
    private SensitiveWordBs sensitiveWordBs;
    @RequestMapping("/test")
    public String test(@RequestParam String word){
        return sensitiveWordBs.filter(word);
    }
}
